const state = () => ({
  modal: false, //弹框
})
const getters = {
  getModal: (state) => state.modal,
}
const mutations = {
  modalSwitch(state) {
    state.modal = !state.modal
  },
}
const actions = {
  modalSwitch({ commit }) {
    commit('modalSwitch')
  },
}
export default { state, getters, mutations, actions }
